package com.authine.cloudpivot.web.api.secondopen.service.impl;

import com.alibaba.fastjson.JSON;
import com.authine.cloudpivot.engine.api.model.runtime.BizObjectCreatedModel;
import com.authine.cloudpivot.web.api.secondopen.dao.*;
import com.authine.cloudpivot.web.api.secondopen.domain.*;
import com.authine.cloudpivot.web.api.secondopen.modules.*;
import com.authine.cloudpivot.web.api.secondopen.service.ReimburseService;
import com.authine.cloudpivot.web.api.secondopen.vo.ProhibitionTimeVO;
import com.authine.cloudpivot.web.api.utils.DateUtil;
import org.apache.commons.collections4.CollectionUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;


@Service
public class ReimburseServiceImpl implements ReimburseService {
    private static final Logger log = LoggerFactory.getLogger(ReimburseServiceImpl.class);

    @Autowired(required=true)
    private Ie6s6JkdlcMapper ie6s6JkdlcMapper;

    @Autowired(required=true)
    private Iusi6BmsqsBMapper iusi6BmsqsBMapper;

    @Autowired(required=true)
    private Ie6s6FpsyjlxxMapper ie6s6FpsyjlxxMapper;

    @Autowired(required=true)
    private Ie6s6WbxcbxdlcMapper ie6s6WbxcbxdlcMapper;

    @Autowired(required=true)
    private Ie6s6LxpjbxlcMapper ie6s6LxpjbxlcMapper;

    @Autowired(required=true)
    private Ie6s6HksqdlcMapper ie6s6HksqdlcMapper;

    @Autowired(required=true)
    private Ie6s6Yyfbxd3Mapper ie6s6Yyfbxd3Mapper;

    @Autowired(required=true)
    private Ie6s6ClfbxlcMapper clfbxlcMapper;

    @Autowired(required=true)
    private Ie6s6GysyfhksqdMapper ie6s6GysyfhksqdMapper;

    @Autowired(required=true)
    private Ie6s6KjdwxxMapper ie6s6KjdwxxMapper;


    @Override
    public int loanQuotaAmount(Ie6s6Jkdlc ie6s6Jkdlc) {
        return ie6s6JkdlcMapper.updateJkdById(ie6s6Jkdlc);
    }

    @Override
    public int kjBTableBudget(Iusi6BmsqsB iusi6BmsqsB) {
        return iusi6BmsqsBMapper.updateBTableById(iusi6BmsqsB);
    }

    @Override
    public List<Iusi6BmsqsB> getBQuota(List<Iusi6BmsqsB> iusi6BmsqsBs) {
        //讲list转化为数组
        String[] ids=new String[iusi6BmsqsBs.size()];
        for (int i = 0; i < iusi6BmsqsBs.size(); i++) {
            ids[i]=iusi6BmsqsBs.get(i).getId();
        }
        List<Iusi6BmsqsB> BmsqsBs=iusi6BmsqsBMapper.selectBmsqsBsByIds(ids);
        return BmsqsBs;
    }

    @Override
    public List<ProhibitionTimeVO> getProhibitionTime() {
        List<ProhibitionTimeVO> prohibitionTime = iusi6BmsqsBMapper.getProhibitionTime();
        return prohibitionTime;
    }

    @Override
    public List<VoucherDeatailVO> convertLxpjbxlc(BizObjectCreatedModel bizObject) {
        List<VoucherDeatailVO> voucherDeatailVOS=new ArrayList<>();
        String cbzx = (String) bizObject.get("cbzx");
        String zy = (String) bizObject.get("zy");
        String sequenceNo = bizObject.getSequenceNo();
        List<Map<String, Object>> lxbxdSheetList=(List<Map<String, Object>>) bizObject.get("lxbxdSheet");
        int num=0;
        //借方报销信息凭证
        if(CollectionUtils.isNotEmpty(lxbxdSheetList)){
            for (int i = 0; i < lxbxdSheetList.size(); i++) {
                num++;
                String zzhbm = String.valueOf(lxbxdSheetList.get(i).get("zzhbm"));
                String fzhbm = String.valueOf(lxbxdSheetList.get(i).get("fzhbm"));
                String bz = String.valueOf(lxbxdSheetList.get(i).get("bz"));
                String xmh = String.valueOf(lxbxdSheetList.get(i).get("xmh"));
                BigDecimal zsrmbje = (BigDecimal)lxbxdSheetList.get(i).get("zsrmbje");
                VoucherDeatailVO voucherDeatailVO=new VoucherDeatailVO();
                voucherDeatailVO.setMdmMFPostingLineSequence(num);
                voucherDeatailVO.setMdmMFPostingLineText(zy);
                voucherDeatailVO.setMdmMFPostingLineDebitTC(zsrmbje);
                voucherDeatailVO.setMdmMFcGLCode(zzhbm);
                voucherDeatailVO.setMdmMFcDivisionCode(fzhbm);
                voucherDeatailVO.setMdmMFcCurrencyCode(bz);
                voucherDeatailVO.setMdmMFcCostCentreCode(cbzx);
                voucherDeatailVO.setMdmMFcProjectCode(xmh);
                voucherDeatailVOS.add(voucherDeatailVO);
            }

        }
        //借方发票信息凭证
        List<Map<String, Object>> lxbxfpSheetList=(List<Map<String, Object>>) bizObject.get("lxbxfpSheet");
        if(CollectionUtils.isNotEmpty(lxbxfpSheetList)){
            for (int i = 0; i < lxbxfpSheetList.size(); i++) {
                num++;
                String oneSubjectCode = String.valueOf(lxbxfpSheetList.get(i).get("oneSubjectCode"));
                String twoSubjectCode = String.valueOf(lxbxfpSheetList.get(i).get("twoSubjectCode"));
                BigDecimal shuie = (BigDecimal)lxbxfpSheetList.get(i).get("shuie");

                VoucherDeatailVO voucherDeatailVO=new VoucherDeatailVO();
                voucherDeatailVO.setMdmMFPostingLineSequence(num);
                voucherDeatailVO.setMdmMFPostingLineText(zy);
                voucherDeatailVO.setMdmMFPostingLineDebitTC(shuie);
                voucherDeatailVO.setMdmMFcGLCode(oneSubjectCode);
                voucherDeatailVO.setMdmMFcDivisionCode(twoSubjectCode);
                voucherDeatailVO.setMdmMFcCostCentreCode(cbzx);
                voucherDeatailVO.setMdmMFcCurrencyCode("RMB");
                voucherDeatailVOS.add(voucherDeatailVO);
            }

        }

        //贷方信息凭证
        List<Map<String, Object>> dfkmSheetList=(List<Map<String, Object>>) bizObject.get("dfkmSheet");
        if(CollectionUtils.isNotEmpty(dfkmSheetList)){
            for (int i = 0; i < dfkmSheetList.size(); i++) {
                num++;
                String oneSubjectCode = String.valueOf(dfkmSheetList.get(i).get("oneSubjectCode"));
                String twoSubjectCode = String.valueOf(dfkmSheetList.get(i).get("twoSubjectCode"));
                String cbzxCode = String.valueOf(dfkmSheetList.get(i).get("cbzxCode"));
                BigDecimal dfje = (BigDecimal)dfkmSheetList.get(i).get("dfje");

                VoucherDeatailVO voucherDeatailVO=new VoucherDeatailVO();
                voucherDeatailVO.setMdmMFPostingLineSequence(num);
                voucherDeatailVO.setMdmMFPostingLineText(zy);
                voucherDeatailVO.setMdmMFPostingLineCreditTC(dfje);
                voucherDeatailVO.setMdmMFcGLCode(oneSubjectCode);
                voucherDeatailVO.setMdmMFcDivisionCode(twoSubjectCode);
                voucherDeatailVO.setMdmMFcCostCentreCode(cbzxCode);
                voucherDeatailVO.setMdmMFcCurrencyCode("RMB");
                voucherDeatailVOS.add(voucherDeatailVO);
            }

        }

        return voucherDeatailVOS;
    }

    @Override
    public List<VoucherDeatailVO> convertHksqdlc(BizObjectCreatedModel bizObject) {
        List<VoucherDeatailVO> voucherDeatailVOS=new ArrayList<>();
        String cbzx = (String) bizObject.get("cbzx");
        String zy = (String) bizObject.get("zy");

        String zzhbm = (String) bizObject.get("zzhbm");
        String fzhbm = (String) bizObject.get("fzhbm");
        String xmh= (String) bizObject.get("xmCode");
        String bz = (String) bizObject.get("bz");
        BigDecimal jine = (BigDecimal)bizObject.get("jine");
        int num=1;
        //借方报销信息凭证
        VoucherDeatailVO voucherDeatail=new VoucherDeatailVO();
        voucherDeatail.setMdmMFPostingLineSequence(num);
        voucherDeatail.setMdmMFPostingLineText(zy);
        voucherDeatail.setMdmMFPostingLineDebitTC(jine);
        voucherDeatail.setMdmMFcGLCode(zzhbm);
        voucherDeatail.setMdmMFcDivisionCode(fzhbm);
        voucherDeatail.setMdmMFcCurrencyCode(bz);
        voucherDeatail.setMdmMFcCostCentreCode(cbzx);
        voucherDeatail.setMdmMFcProjectCode(xmh);
        voucherDeatailVOS.add(voucherDeatail);

        //借方发票信息凭证
        List<Map<String, Object>> hkfpSheetList=(List<Map<String, Object>>) bizObject.get("hkfpSheet");
        if(CollectionUtils.isNotEmpty(hkfpSheetList)){
            for (int i = 0; i < hkfpSheetList.size(); i++) {
                num++;
                String oneSubjectCode = String.valueOf(hkfpSheetList.get(i).get("oneSubjectCode"));
                String twoSubjectCode = String.valueOf(hkfpSheetList.get(i).get("twoSubjectCode"));
                BigDecimal shuie = (BigDecimal)hkfpSheetList.get(i).get("shuie");

                VoucherDeatailVO voucherDeatailVO=new VoucherDeatailVO();
                voucherDeatailVO.setMdmMFPostingLineSequence(num);
                voucherDeatailVO.setMdmMFPostingLineText(zy);
                voucherDeatailVO.setMdmMFPostingLineDebitTC(shuie);
                voucherDeatailVO.setMdmMFcGLCode(oneSubjectCode);
                voucherDeatailVO.setMdmMFcDivisionCode(twoSubjectCode);
                voucherDeatailVO.setMdmMFcCostCentreCode(cbzx);
                voucherDeatailVO.setMdmMFcCurrencyCode("RMB");
                voucherDeatailVOS.add(voucherDeatailVO);
            }

        }

        //贷方信息凭证
        List<Map<String, Object>> dfkmSheetList=(List<Map<String, Object>>) bizObject.get("hkdfkmSheet");
        if(CollectionUtils.isNotEmpty(dfkmSheetList)){
            for (int i = 0; i < dfkmSheetList.size(); i++) {
                num++;
                String oneSubjectCode = String.valueOf(dfkmSheetList.get(i).get("oneSubjectCode"));
                String twoSubjectCode = String.valueOf(dfkmSheetList.get(i).get("twoSubjectCode"));
                String cbzxCode = String.valueOf(dfkmSheetList.get(i).get("cbzxCode"));
                BigDecimal dfje = (BigDecimal)dfkmSheetList.get(i).get("dfje");

                VoucherDeatailVO voucherDeatailVO=new VoucherDeatailVO();
                voucherDeatailVO.setMdmMFPostingLineSequence(num);
                voucherDeatailVO.setMdmMFPostingLineText(zy);
                voucherDeatailVO.setMdmMFPostingLineCreditTC(dfje);
                voucherDeatailVO.setMdmMFcGLCode(oneSubjectCode);
                voucherDeatailVO.setMdmMFcDivisionCode(twoSubjectCode);
                voucherDeatailVO.setMdmMFcCostCentreCode(cbzxCode);
                voucherDeatailVO.setMdmMFcCurrencyCode("RMB");
                voucherDeatailVOS.add(voucherDeatailVO);
            }

        }

        return voucherDeatailVOS;
    }

    @Override
    public List<VoucherDeatailVO> convertJkdlc(BizObjectCreatedModel bizObject) {
        List<VoucherDeatailVO> voucherDeatailVOS=new ArrayList<>();
        String cbzx = (String) bizObject.get("grcbzxCode");
        String zy = (String) bizObject.get("zy");

        String oneScode = (String) bizObject.get("oneSubjectCode");
        String twoScode = (String) bizObject.get("twoSubjectCode");
        String bz = "RMB";
        BigDecimal jine = (BigDecimal)bizObject.get("zzspje");
        int num=1;
        //借方报销信息凭证
        VoucherDeatailVO voucherDeatail=new VoucherDeatailVO();
        voucherDeatail.setMdmMFPostingLineSequence(num);
        voucherDeatail.setMdmMFPostingLineText(zy);
        voucherDeatail.setMdmMFPostingLineDebitTC(jine);
        voucherDeatail.setMdmMFcGLCode(oneScode);
        voucherDeatail.setMdmMFcDivisionCode(twoScode);
        voucherDeatail.setMdmMFcCurrencyCode(bz);
        voucherDeatail.setMdmMFcCostCentreCode(cbzx);
        voucherDeatailVOS.add(voucherDeatail);

        //贷方信息凭证
        List<Map<String, Object>> dfkmSheetList=(List<Map<String, Object>>) bizObject.get("jkddfkmSheet");
        if(CollectionUtils.isNotEmpty(dfkmSheetList)){
            for (int i = 0; i < dfkmSheetList.size(); i++) {
                num++;
                String oneSubjectCode = String.valueOf(dfkmSheetList.get(i).get("oneSubjectCode"));
                String twoSubjectCode = String.valueOf(dfkmSheetList.get(i).get("twoSubjectCode"));
                String cbzxCode = String.valueOf(dfkmSheetList.get(i).get("cbzxCode"));
                BigDecimal dfje = (BigDecimal)dfkmSheetList.get(i).get("dfje");

                VoucherDeatailVO voucherDeatailVO=new VoucherDeatailVO();
                voucherDeatailVO.setMdmMFPostingLineSequence(num);
                voucherDeatailVO.setMdmMFPostingLineText(zy);
                voucherDeatailVO.setMdmMFPostingLineCreditTC(dfje);
                voucherDeatailVO.setMdmMFcGLCode(oneSubjectCode);
                voucherDeatailVO.setMdmMFcDivisionCode(twoSubjectCode);
                voucherDeatailVO.setMdmMFcCostCentreCode(cbzxCode);
                voucherDeatailVO.setMdmMFcCurrencyCode("RMB");
                voucherDeatailVOS.add(voucherDeatailVO);
            }

        }

        return voucherDeatailVOS;
    }

    @Override
    public List<VoucherDeatailVO> convertYyfbxlc(BizObjectCreatedModel bizObject) {
        List<VoucherDeatailVO> voucherDeatailVOS=new ArrayList<>();
        String cbzx = (String) bizObject.get("cbzx");
        String zy = (String) bizObject.get("zy");

        String oneScode = (String) bizObject.get("oneSubjectCode");
        String twoScode = (String) bizObject.get("twoSubjectCode");
        String bz = "RMB";
        BigDecimal jine = (BigDecimal)bizObject.get("zzspje");
        int num=1;
        //借方报销信息凭证
        VoucherDeatailVO voucherDeatail=new VoucherDeatailVO();
        voucherDeatail.setMdmMFPostingLineSequence(num);
        voucherDeatail.setMdmMFPostingLineText(zy);
        voucherDeatail.setMdmMFPostingLineDebitTC(jine);
        voucherDeatail.setMdmMFcGLCode(oneScode);
        voucherDeatail.setMdmMFcDivisionCode(twoScode);
        voucherDeatail.setMdmMFcCurrencyCode(bz);
        voucherDeatail.setMdmMFcCostCentreCode(cbzx);
        voucherDeatailVOS.add(voucherDeatail);

        //贷方信息凭证
        List<Map<String, Object>> dfkmSheetList=(List<Map<String, Object>>) bizObject.get("jkddfkmSheet");
        if(CollectionUtils.isNotEmpty(dfkmSheetList)){
            for (int i = 0; i < dfkmSheetList.size(); i++) {
                num++;
                String oneSubjectCode = String.valueOf(dfkmSheetList.get(i).get("oneSubjectCode"));
                String twoSubjectCode = String.valueOf(dfkmSheetList.get(i).get("twoSubjectCode"));
                String cbzxCode = String.valueOf(dfkmSheetList.get(i).get("cbzxCode"));
                BigDecimal dfje = (BigDecimal)dfkmSheetList.get(i).get("dfje");

                VoucherDeatailVO voucherDeatailVO=new VoucherDeatailVO();
                voucherDeatailVO.setMdmMFPostingLineSequence(num);
                voucherDeatailVO.setMdmMFPostingLineText(zy);
                voucherDeatailVO.setMdmMFPostingLineCreditTC(dfje);
                voucherDeatailVO.setMdmMFcGLCode(oneSubjectCode);
                voucherDeatailVO.setMdmMFcDivisionCode(twoSubjectCode);
                voucherDeatailVO.setMdmMFcCostCentreCode(cbzxCode);
                voucherDeatailVO.setMdmMFcCurrencyCode("RMB");
                voucherDeatailVOS.add(voucherDeatailVO);
            }

        }

        return voucherDeatailVOS;
    }

    @Override
    public List<VoucherDeatailVO> convertClfbxlc(BizObjectCreatedModel bizObject) {
        List<VoucherDeatailVO> voucherDeatailVOS=new ArrayList<>();
        String cbzx = (String) bizObject.get("cbzx");
        String zy = (String) bizObject.get("zy");

        String oneScode = (String) bizObject.get("oneSubjectCode");
        String twoScode = (String) bizObject.get("twoSubjectCode");
        String bz = "RMB";
        BigDecimal jine = (BigDecimal)bizObject.get("hjbxje");
        int num=1;
        //借方报销信息凭证
        VoucherDeatailVO voucherDeatail=new VoucherDeatailVO();
        voucherDeatail.setMdmMFPostingLineSequence(num);
        voucherDeatail.setMdmMFPostingLineText(zy);
        voucherDeatail.setMdmMFPostingLineDebitTC(jine);
        voucherDeatail.setMdmMFcGLCode(oneScode);
        voucherDeatail.setMdmMFcDivisionCode(twoScode);
        voucherDeatail.setMdmMFcCurrencyCode(bz);
        voucherDeatail.setMdmMFcCostCentreCode(cbzx);
        voucherDeatailVOS.add(voucherDeatail);

        //借方交通工具发票信息凭证
        List<Map<String, Object>> jtgjfpSheetList=(List<Map<String, Object>>) bizObject.get("jtgjfpsheet");
        if(CollectionUtils.isNotEmpty(jtgjfpSheetList)){
            for (int i = 0; i < jtgjfpSheetList.size(); i++) {
                num++;
                String oneSubjectCode = String.valueOf(jtgjfpSheetList.get(i).get("oneSubjectCode"));
                String twoSubjectCode = String.valueOf(jtgjfpSheetList.get(i).get("twoSubjectCode"));
                BigDecimal shuie = (BigDecimal)jtgjfpSheetList.get(i).get("shuie");

                VoucherDeatailVO voucherDeatailVO=new VoucherDeatailVO();
                voucherDeatailVO.setMdmMFPostingLineSequence(num);
                voucherDeatailVO.setMdmMFPostingLineText(zy);
                voucherDeatailVO.setMdmMFPostingLineDebitTC(shuie);
                voucherDeatailVO.setMdmMFcGLCode(oneSubjectCode);
                voucherDeatailVO.setMdmMFcDivisionCode(twoSubjectCode);
                voucherDeatailVO.setMdmMFcCostCentreCode(cbzx);
                voucherDeatailVO.setMdmMFcCurrencyCode("RMB");
                voucherDeatailVOS.add(voucherDeatailVO);
            }
        }

        //借方食宿补助发票信息凭证
        List<Map<String, Object>> ssbzfpSheetList=(List<Map<String, Object>>) bizObject.get("ssbzfpSheet");
        if(CollectionUtils.isNotEmpty(ssbzfpSheetList)){
            for (int i = 0; i < ssbzfpSheetList.size(); i++) {
                num++;
                String oneSubjectCode = String.valueOf(ssbzfpSheetList.get(i).get("oneSubjectCode"));
                String twoSubjectCode = String.valueOf(ssbzfpSheetList.get(i).get("twoSubjectCode"));
                BigDecimal shuie = (BigDecimal)ssbzfpSheetList.get(i).get("shuie");

                VoucherDeatailVO voucherDeatailVO=new VoucherDeatailVO();
                voucherDeatailVO.setMdmMFPostingLineSequence(num);
                voucherDeatailVO.setMdmMFPostingLineText(zy);
                voucherDeatailVO.setMdmMFPostingLineDebitTC(shuie);
                voucherDeatailVO.setMdmMFcGLCode(oneSubjectCode);
                voucherDeatailVO.setMdmMFcDivisionCode(twoSubjectCode);
                voucherDeatailVO.setMdmMFcCostCentreCode(cbzx);
                voucherDeatailVO.setMdmMFcCurrencyCode("RMB");
                voucherDeatailVOS.add(voucherDeatailVO);
            }
        }

        //借方交通工具发票信息凭证
        List<Map<String, Object>> snjtfpSheetList=(List<Map<String, Object>>) bizObject.get("snjtfpSheet");
        if(CollectionUtils.isNotEmpty(snjtfpSheetList)){
            for (int i = 0; i < snjtfpSheetList.size(); i++) {
                num++;
                String oneSubjectCode = String.valueOf(snjtfpSheetList.get(i).get("oneSubjectCode"));
                String twoSubjectCode = String.valueOf(snjtfpSheetList.get(i).get("twoSubjectCode"));
                BigDecimal shuie = (BigDecimal)snjtfpSheetList.get(i).get("shuie");

                VoucherDeatailVO voucherDeatailVO=new VoucherDeatailVO();
                voucherDeatailVO.setMdmMFPostingLineSequence(num);
                voucherDeatailVO.setMdmMFPostingLineText(zy);
                voucherDeatailVO.setMdmMFPostingLineDebitTC(shuie);
                voucherDeatailVO.setMdmMFcGLCode(oneSubjectCode);
                voucherDeatailVO.setMdmMFcDivisionCode(twoSubjectCode);
                voucherDeatailVO.setMdmMFcCostCentreCode(cbzx);
                voucherDeatailVO.setMdmMFcCurrencyCode("RMB");
                voucherDeatailVOS.add(voucherDeatailVO);
            }
        }

        //贷方信息凭证
        List<Map<String, Object>> dfkmSheetList=(List<Map<String, Object>>) bizObject.get("clfdfkmSheet");
        if(CollectionUtils.isNotEmpty(dfkmSheetList)){
            for (int i = 0; i < dfkmSheetList.size(); i++) {
                num++;
                String oneSubjectCode = String.valueOf(dfkmSheetList.get(i).get("oneSubjectCode"));
                String twoSubjectCode = String.valueOf(dfkmSheetList.get(i).get("twoSubjectCode"));
                String cbzxCode = String.valueOf(dfkmSheetList.get(i).get("cbzxCode"));
                BigDecimal dfje = (BigDecimal)dfkmSheetList.get(i).get("dfje");

                VoucherDeatailVO voucherDeatailVO=new VoucherDeatailVO();
                voucherDeatailVO.setMdmMFPostingLineSequence(num);
                voucherDeatailVO.setMdmMFPostingLineText(zy);
                voucherDeatailVO.setMdmMFPostingLineCreditTC(dfje);
                voucherDeatailVO.setMdmMFcGLCode(oneSubjectCode);
                voucherDeatailVO.setMdmMFcDivisionCode(twoSubjectCode);
                voucherDeatailVO.setMdmMFcCostCentreCode(cbzxCode);
                voucherDeatailVO.setMdmMFcCurrencyCode("RMB");
                voucherDeatailVOS.add(voucherDeatailVO);
            }

        }

        return voucherDeatailVOS;
    }

    @Override
    public List<VoucherDeatailVO> convertWbxcbxdlc(BizObjectCreatedModel bizObject) {
        List<VoucherDeatailVO> voucherDeatailVOS=new ArrayList<>();
        String cbzx = (String) bizObject.get("cbzx");
        String zy = (String) bizObject.get("zy");

        String oneScode = (String) bizObject.get("oneSubjectCode");
        String twoScode = (String) bizObject.get("twoSubjectCode");
        String bz = "RMB";
        BigDecimal jine = (BigDecimal)bizObject.get("hjbxje");
        int num=1;
        //借方报销信息凭证
        VoucherDeatailVO voucherDeatail=new VoucherDeatailVO();
        voucherDeatail.setMdmMFPostingLineSequence(num);
        voucherDeatail.setMdmMFPostingLineText(zy);
        voucherDeatail.setMdmMFPostingLineDebitTC(jine);


//        voucherDeatail.setMdmMFcGLCode(oneScode);
//        voucherDeatail.setMdmMFcDivisionCode(twoScode);
//        voucherDeatail.setMdmMFcCostCentreCode(cbzx);
//        voucherDeatail.setMdmMFcGLCode("113300");
//        voucherDeatail.setMdmMFcDivisionCode("2549");
//        voucherDeatail.setMdmMFcCostCentreCode("9673");
//
//        voucherDeatail.setMdmMFcCurrencyCode(bz);
//        voucherDeatailVOS.add(voucherDeatail);
//
//
//        VoucherDeatailVO voucherDeatailVO=new VoucherDeatailVO();
//        voucherDeatailVO.setMdmMFPostingLineSequence(num);
//        voucherDeatailVO.setMdmMFPostingLineText(zy);
//        voucherDeatailVO.setMdmMFcGLCode("217100");
//        voucherDeatailVO.setMdmMFcDivisionCode("1011");
//        voucherDeatailVO.setMdmMFcCostCentreCode("9247");
//        voucherDeatailVO.setMdmMFPostingLineDebitTC(new BigDecimal(1000));
//        voucherDeatailVO.setMdmMFcCurrencyCode("RMB");
//        voucherDeatailVOS.add(voucherDeatailVO);
//
//
//        VoucherDeatailVO voucherDeatailVO2=new VoucherDeatailVO();
//        voucherDeatailVO2.setMdmMFPostingLineSequence(num);
//        voucherDeatailVO2.setMdmMFPostingLineText(zy);
//        voucherDeatailVO2.setMdmMFPostingLineCreditTC(new BigDecimal(1000));
//        voucherDeatailVO2.setMdmMFcGLCode("100203");
//        voucherDeatailVO2.setMdmMFcCurrencyCode("RMB");
//        voucherDeatailVOS.add(voucherDeatailVO);

        //借方食宿补助发票信息凭证
        List<Map<String, Object>> wbxcfpSheet=(List<Map<String, Object>>) bizObject.get("wbxcjfkmSheet");
        if(CollectionUtils.isNotEmpty(wbxcfpSheet)){
            for (int i = 0; i < wbxcfpSheet.size(); i++) {
                num++;
                String oneSubjectCode = String.valueOf(wbxcfpSheet.get(i).get("oneSubjectCode"));
                String twoSubjectCode = String.valueOf(wbxcfpSheet.get(i).get("twoSubjectCode"));
                String cbzxCode = String.valueOf(wbxcfpSheet.get(i).get("cbzxCode"));
                String xmh = String.valueOf(wbxcfpSheet.get(i).get("xmh"));
                BigDecimal dfje = (BigDecimal)wbxcfpSheet.get(i).get("dfje");

                VoucherDeatailVO voucherDeatailVO=new VoucherDeatailVO();
                voucherDeatailVO.setMdmMFPostingLineSequence(num);
                voucherDeatailVO.setMdmMFPostingLineText(zy);
                voucherDeatailVO.setMdmMFPostingLineDebitTC(dfje);
                voucherDeatailVO.setMdmMFcProjectCode(xmh);
                voucherDeatailVO.setMdmMFcGLCode(oneSubjectCode);
                voucherDeatailVO.setMdmMFcDivisionCode(twoSubjectCode);
                voucherDeatailVO.setMdmMFcCostCentreCode(cbzxCode);


                voucherDeatailVO.setMdmMFcGLCode("217100");
                voucherDeatailVO.setMdmMFcDivisionCode("1011");
                voucherDeatailVO.setMdmMFcCostCentreCode("9247");
                voucherDeatailVO.setMdmMFPostingLineDebitTC(new BigDecimal(1000));



                voucherDeatailVO.setMdmMFcCurrencyCode("RMB");
                voucherDeatailVOS.add(voucherDeatailVO);
            }
        }

        //贷方信息凭证
        List<Map<String, Object>> wbxcdfkmSheetList=(List<Map<String, Object>>) bizObject.get("wbxcdfkmSheet");
        if(CollectionUtils.isNotEmpty(wbxcdfkmSheetList)){
            for (int i = 0; i < wbxcdfkmSheetList.size(); i++) {
                num++;
                String oneSubjectCode = String.valueOf(wbxcdfkmSheetList.get(i).get("oneSubjectCode"));
                String twoSubjectCode = String.valueOf(wbxcdfkmSheetList.get(i).get("twoSubjectCode"));
                String cbzxCode = String.valueOf(wbxcdfkmSheetList.get(i).get("cbzxCode"));
                BigDecimal dfje = (BigDecimal)wbxcdfkmSheetList.get(i).get("dfje");
                String xmh = String.valueOf(wbxcfpSheet.get(i).get("xmh"));

                VoucherDeatailVO voucherDeatailVO=new VoucherDeatailVO();
                voucherDeatailVO.setMdmMFPostingLineSequence(num);
                voucherDeatailVO.setMdmMFPostingLineText(zy);
                voucherDeatailVO.setMdmMFPostingLineCreditTC(dfje);
                voucherDeatailVO.setMdmMFcGLCode(oneSubjectCode);
                voucherDeatailVO.setMdmMFcDivisionCode(twoSubjectCode);
                voucherDeatailVO.setMdmMFcCostCentreCode(cbzxCode);
                voucherDeatailVO.setMdmMFcProjectCode(xmh);
                voucherDeatailVO.setMdmMFcCurrencyCode("RMB");
                voucherDeatailVOS.add(voucherDeatailVO);
            }

        }

        return voucherDeatailVOS;
    }

    @Override
    public List<VoucherDeatailVO> convertGysyfksqblc(BizObjectCreatedModel bizObject) {
        List<VoucherDeatailVO> voucherDeatailVOS=new ArrayList<>();
        String cbzx = (String) bizObject.get("cbzx");
        String zy = (String) bizObject.get("zy");

        String oneScode = (String) bizObject.get("zzhbm");
        String twoScode = (String) bizObject.get("fzhbm");
        String bz = "RMB";
        BigDecimal jine = (BigDecimal)bizObject.get("jine");
        int num=1;
        //借方报销信息凭证
        VoucherDeatailVO voucherDeatail=new VoucherDeatailVO();
        voucherDeatail.setMdmMFPostingLineSequence(num);
        voucherDeatail.setMdmMFPostingLineText(zy);
        voucherDeatail.setMdmMFPostingLineDebitTC(jine);
        voucherDeatail.setMdmMFcGLCode(oneScode);
        voucherDeatail.setMdmMFcDivisionCode(twoScode);
        voucherDeatail.setMdmMFcCurrencyCode(bz);
        voucherDeatail.setMdmMFcCostCentreCode(cbzx);
        voucherDeatailVOS.add(voucherDeatail);

        //贷方信息凭证
        List<Map<String, Object>> dfkmSheetList=(List<Map<String, Object>>) bizObject.get("yfhkdfkmSheet");
        if(CollectionUtils.isNotEmpty(dfkmSheetList)){
            for (int i = 0; i < dfkmSheetList.size(); i++) {
                num++;
                String oneSubjectCode = String.valueOf(dfkmSheetList.get(i).get("oneSubjectCode"));
                String twoSubjectCode = String.valueOf(dfkmSheetList.get(i).get("twoSubjectCode"));
                String cbzxCode = String.valueOf(dfkmSheetList.get(i).get("cbzxCode"));
                BigDecimal dfje = (BigDecimal)dfkmSheetList.get(i).get("dfje");

                VoucherDeatailVO voucherDeatailVO=new VoucherDeatailVO();
                voucherDeatailVO.setMdmMFPostingLineSequence(num);
                voucherDeatailVO.setMdmMFPostingLineText(zy);
                voucherDeatailVO.setMdmMFPostingLineCreditTC(dfje);
                voucherDeatailVO.setMdmMFcGLCode(oneSubjectCode);
                voucherDeatailVO.setMdmMFcDivisionCode(twoSubjectCode);
                voucherDeatailVO.setMdmMFcCostCentreCode(cbzxCode);
                voucherDeatailVO.setMdmMFcCurrencyCode("RMB");
                voucherDeatailVOS.add(voucherDeatailVO);
            }

        }

        return voucherDeatailVOS;
    }

    @Override
    public List<VoucherDeatailVO> convertPzxx(BizObjectCreatedModel bizObject,String jfzbCode,String dfzbCode) {
        List<VoucherDeatailVO> voucherDeatailVOS=new ArrayList<>();
        String zy = (String) bizObject.get("zy");
        int num=0;
//
//        VoucherDeatailVO voucherDeatailVO=new VoucherDeatailVO();
//        voucherDeatailVO.setMdmMFPostingLineSequence(1);
//        voucherDeatailVO.setMdmMFPostingLineText(zy);
//        voucherDeatailVO.setMdmMFcGLCode("217100");
//        voucherDeatailVO.setMdmMFcDivisionCode("1011");
//        voucherDeatailVO.setMdmMFcCostCentreCode("9247");
//        voucherDeatailVO.setMdmMFPostingLineDebitTC(new BigDecimal(1000));
//        voucherDeatailVO.setMdmMFcCurrencyCode("RMB");
//        voucherDeatailVOS.add(voucherDeatailVO);
//
//
//        VoucherDeatailVO voucherDeatailVO2=new VoucherDeatailVO();
//        voucherDeatailVO2.setMdmMFPostingLineSequence(2);
//        voucherDeatailVO2.setMdmMFPostingLineText(zy);
//        voucherDeatailVO2.setMdmMFPostingLineCreditTC(new BigDecimal(1000));
//        voucherDeatailVO2.setMdmMFcGLCode("100203");
//        voucherDeatailVO2.setMdmMFcCurrencyCode("RMB");
//        voucherDeatailVOS.add(voucherDeatailVO2);

        //借方信息凭证
        List<Map<String, Object>> jfkmSheetList=(List<Map<String, Object>>) bizObject.get(jfzbCode);
        if(CollectionUtils.isNotEmpty(jfkmSheetList)){
            for (int i = 0; i < jfkmSheetList.size(); i++) {
                num++;
                String oneSubjectCode = String.valueOf(jfkmSheetList.get(i).get("oneSubjectCode"));
                String twoSubjectCode = String.valueOf(jfkmSheetList.get(i).get("twoSubjectCode"));
                String cbzxCode = String.valueOf(jfkmSheetList.get(i).get("cbzxCode"));
                String xmh = String.valueOf(jfkmSheetList.get(i).get("xmh"));
                BigDecimal dfje = (BigDecimal)jfkmSheetList.get(i).get("dfje");

                VoucherDeatailVO voucherDeatailVO=new VoucherDeatailVO();
                voucherDeatailVO.setMdmMFPostingLineSequence(num);
                voucherDeatailVO.setMdmMFPostingLineText(zy);
                voucherDeatailVO.setMdmMFPostingLineDebitTC(dfje);
                voucherDeatailVO.setMdmMFcGLCode(oneSubjectCode);
                voucherDeatailVO.setMdmMFcDivisionCode(twoSubjectCode);
                voucherDeatailVO.setMdmMFcCostCentreCode(cbzxCode);
                voucherDeatailVO.setMdmMFcCurrencyCode("RMB");
                voucherDeatailVO.setMdmMFcProjectCode(xmh);
                voucherDeatailVOS.add(voucherDeatailVO);
            }

        }


        //贷方信息凭证
        List<Map<String, Object>> dfkmSheetList=(List<Map<String, Object>>) bizObject.get(dfzbCode);
        if(CollectionUtils.isNotEmpty(dfkmSheetList)){
            for (int i = 0; i < dfkmSheetList.size(); i++) {
                num++;
                String oneSubjectCode = String.valueOf(dfkmSheetList.get(i).get("oneSubjectCode"));
                String twoSubjectCode = String.valueOf(dfkmSheetList.get(i).get("twoSubjectCode"));
                String cbzxCode = String.valueOf(dfkmSheetList.get(i).get("cbzxCode"));
                BigDecimal dfje = (BigDecimal)dfkmSheetList.get(i).get("dfje");
                String xmh = String.valueOf(jfkmSheetList.get(i).get("xmh"));

                VoucherDeatailVO voucherDeatailVO=new VoucherDeatailVO();
                voucherDeatailVO.setMdmMFPostingLineSequence(num);
                voucherDeatailVO.setMdmMFPostingLineText(zy);
                voucherDeatailVO.setMdmMFPostingLineCreditTC(dfje);
                voucherDeatailVO.setMdmMFcGLCode(oneSubjectCode);
                voucherDeatailVO.setMdmMFcDivisionCode(twoSubjectCode);
                voucherDeatailVO.setMdmMFcCostCentreCode(cbzxCode);
                voucherDeatailVO.setMdmMFcCurrencyCode("RMB");
                voucherDeatailVO.setMdmMFcProjectCode(xmh);
                voucherDeatailVOS.add(voucherDeatailVO);
            }

        }

        return voucherDeatailVOS;
    }

    @Override
    public List<Ie6s6Fpsyjlxx> getFpDeatailByParam(String[] fphs) {
        return ie6s6FpsyjlxxMapper.selectFpDeatailByFphs(fphs);
    }

    @Override
    public int addFpsyjlx(Ie6s6Fpsyjlxx ie6s6Fpsyjlxx) {
        return ie6s6FpsyjlxxMapper.insertFpsyjlx(ie6s6Fpsyjlxx);
    }

    @Override
    public int delFpsyjlxByFph(String fph) {
        return ie6s6FpsyjlxxMapper.deleteFpsyjlxByFph(fph);
    }

    @Override
    public int updGenerateVoucher(String processCode, String objId, String pzh, String msg) {
        int num=0;
        if("lxpjbxlc".equals(processCode)){
            Ie6s6Lxpjbxlc ie6s6Lxpjbxlc=new Ie6s6Lxpjbxlc();
            ie6s6Lxpjbxlc.setId(objId);
            ie6s6Lxpjbxlc.setPzh(pzh);
            ie6s6Lxpjbxlc.setPzmsg(msg);
            num=ie6s6LxpjbxlcMapper.updLxpjbxlcById(ie6s6Lxpjbxlc);
        }else if("hksqdlc".equals(processCode)){
            Ie6s6Hksqdlc ie6s6Hksqdlc=new Ie6s6Hksqdlc();
            ie6s6Hksqdlc.setId(objId);
            ie6s6Hksqdlc.setPzh(pzh);
            ie6s6Hksqdlc.setPzmsg(msg);
            num=ie6s6HksqdlcMapper.updHksqdlcById(ie6s6Hksqdlc);

        }else if("jkdlc".equals(processCode)){
            Ie6s6Jkdlc ie6s6Jkdlc=new Ie6s6Jkdlc();
            ie6s6Jkdlc.setId(objId);
            ie6s6Jkdlc.setPzh(pzh);
            ie6s6Jkdlc.setPzmsg(msg);
            num=ie6s6JkdlcMapper.updJkdById(ie6s6Jkdlc);
        }else if("yyfbxd3".equals(processCode)){
            Ie6s6Yyfbxd3 ie6s6Yyfbxd3=new Ie6s6Yyfbxd3();
            ie6s6Yyfbxd3.setId(objId);
            ie6s6Yyfbxd3.setPzh(pzh);
            ie6s6Yyfbxd3.setPzmsg(msg);
            num=ie6s6Yyfbxd3Mapper.updYyfbxdById(ie6s6Yyfbxd3);
        }else if("clfbxlc".equals(processCode)){
            Ie6s6Clfbxlc ie6s6Clfbxlc=new Ie6s6Clfbxlc();
            ie6s6Clfbxlc.setId(objId);
            ie6s6Clfbxlc.setPzh(pzh);
            ie6s6Clfbxlc.setPzmsg(msg);
            num=clfbxlcMapper.updClfbxById(ie6s6Clfbxlc);
        }else if("wbxcbxdlc".equals(processCode)){
            Ie6s6Wbxcbxdlc ie6s6Wbxcbxdlc=new Ie6s6Wbxcbxdlc();
            ie6s6Wbxcbxdlc.setId(objId);
            ie6s6Wbxcbxdlc.setPzh(pzh);
            ie6s6Wbxcbxdlc.setPzmsg(msg);
            num=ie6s6WbxcbxdlcMapper.updWbxcbxdlcById(ie6s6Wbxcbxdlc);
        }else if("gysyfksqblc".equals(processCode)){
            Ie6s6Gysyfhksqd ie6s6Gysyfhksqd=new Ie6s6Gysyfhksqd();
            ie6s6Gysyfhksqd.setId(objId);
            ie6s6Gysyfhksqd.setPzh(pzh);
            ie6s6Gysyfhksqd.setPzmsg(msg);
            num=ie6s6GysyfhksqdMapper.updGysyfhksqdById(ie6s6Gysyfhksqd);
        }
        return num;
    }

    @Override
    public int updPaymentStatus(String processCode, String objId, String status) {
        int num=0;
        if("lxpjbxlc".equals(processCode)){
            Ie6s6Lxpjbxlc ie6s6Lxpjbxlc=new Ie6s6Lxpjbxlc();
            ie6s6Lxpjbxlc.setId(objId);
            ie6s6Lxpjbxlc.setFkzt(status);
            num=ie6s6LxpjbxlcMapper.updLxpjbxlcPaymentStatusById(ie6s6Lxpjbxlc);
        }else if("hksqdlc".equals(processCode)){
            Ie6s6Hksqdlc ie6s6Hksqdlc=new Ie6s6Hksqdlc();
            ie6s6Hksqdlc.setId(objId);
            ie6s6Hksqdlc.setFkzt(status);
            num=ie6s6HksqdlcMapper.updHksqdlcPaymentStatusById(ie6s6Hksqdlc);
        }else if("jkdlc".equals(processCode)){
            Ie6s6Jkdlc ie6s6Jkdlc=new Ie6s6Jkdlc();
            ie6s6Jkdlc.setId(objId);
            ie6s6Jkdlc.setFkzt(status);
            num=ie6s6JkdlcMapper.updJkdPaymentStatusById(ie6s6Jkdlc);
        }else if("yyfbxd3".equals(processCode)){
            Ie6s6Yyfbxd3 ie6s6Yyfbxd3=new Ie6s6Yyfbxd3();
            ie6s6Yyfbxd3.setId(objId);
            ie6s6Yyfbxd3.setFkzt(status);
            num=ie6s6Yyfbxd3Mapper.updYyfbxdPaymentStatusById(ie6s6Yyfbxd3);
        }else if("clfbxlc".equals(processCode)){
            Ie6s6Clfbxlc ie6s6Clfbxlc=new Ie6s6Clfbxlc();
            ie6s6Clfbxlc.setId(objId);
            ie6s6Clfbxlc.setFkzt(status);
            num=clfbxlcMapper.updClfbxPaymentStatusById(ie6s6Clfbxlc);
        }else if("wbxcbxdlc".equals(processCode)){
            Ie6s6Wbxcbxdlc ie6s6Wbxcbxdlc=new Ie6s6Wbxcbxdlc();
            ie6s6Wbxcbxdlc.setId(objId);
            ie6s6Wbxcbxdlc.setFkzt(status);
            num=ie6s6WbxcbxdlcMapper.updWbxcbxdlcPaymentStatusById(ie6s6Wbxcbxdlc);
        }else if("gysyfksqblc".equals(processCode)){
            Ie6s6Gysyfhksqd ie6s6Gysyfhksqd=new Ie6s6Gysyfhksqd();
            ie6s6Gysyfhksqd.setId(objId);
            ie6s6Gysyfhksqd.setFkzt(status);
            num=ie6s6GysyfhksqdMapper.updGysyfhksqdPaymentStatusById(ie6s6Gysyfhksqd);
        }
        return num;
    }

    @Override
    public MdmBankEntry convertYhfl(BizObjectCreatedModel bizObject, String yfhkjfkmSheet, String yfhkdfkmSheet,String payDate) {
        //贷方信息凭证
        List<Map<String, Object>> dfkmSheetList=(List<Map<String, Object>>) bizObject.get(yfhkdfkmSheet);
        MdmBankEntry mdmBankEntry=new MdmBankEntry();
        mdmBankEntry.setMdmIcCompnayCode("");
        if(CollectionUtils.isNotEmpty(dfkmSheetList)) {
            mdmBankEntry.setMdmIcGLCode(String.valueOf(dfkmSheetList.get(0).get("oneSubjectCode")));
        }
        mdmBankEntry.setMdmIdtBankPostingDate(payDate);

        List<MdmBankStateLineVO> mdmBankStateLineVOS=new ArrayList<>();

        MdmBankStateLineVO mdmBankStateLineVO=new MdmBankStateLineVO();
        //摘要
        String zy=(String) bizObject.get("zy");
        //供应商代码
        String gysdm=(String) bizObject.get("gysdm");
        mdmBankStateLineVO.setMdmBankStateLineNumber(1);
        mdmBankStateLineVO.setMdmBankStateLineValueDate(DateUtil.getCurrentDate(null));
        mdmBankStateLineVO.setMdmBankStateLineDescription(zy);
        //付款类型
        String fklx=(String) bizObject.get("fklx");
        //贷方金额合计
        BigDecimal totalDfje=new BigDecimal(0.0);
        if("预付款".equals(fklx)){
            //当为预付款时，传贷方金额合计
            if(CollectionUtils.isNotEmpty(dfkmSheetList)) {
                for (int i = 0; i < dfkmSheetList.size(); i++) {
                    BigDecimal dfje= (BigDecimal) dfkmSheetList.get(i).get("dfje");
                    totalDfje=totalDfje.add(dfje);
                }
                mdmBankStateLineVO.setMdmBankStateLineAmountTC(totalDfje);
            }
        }else if("已挂账付款".equals(fklx)){
            List<Map<String, Object>> yfhkjfkmList=(List<Map<String, Object>>) bizObject.get(yfhkjfkmSheet);
            //如果是已挂账付款，就是所有借方金额汇总
            if(CollectionUtils.isNotEmpty(yfhkjfkmList)) {
                BigDecimal totalJfje=new BigDecimal(0.0);
                for (int i = 0; i < yfhkjfkmList.size(); i++) {
                    BigDecimal jfje= (BigDecimal) yfhkjfkmList.get(i).get("dfje");
                    totalJfje=totalJfje.add(jfje);
                }
                mdmBankStateLineVO.setMdmBankStateLineAmountTC(totalJfje);
            }
        }
        mdmBankStateLineVOS.add(mdmBankStateLineVO);

        List<MdmBankStateAllocVO> mdmBankStateAllocVOS=new ArrayList<>();
        List<Map<String, Object>> yfhkjfkmList=(List<Map<String, Object>>) bizObject.get(yfhkjfkmSheet);
        //如果是已挂账付款，就是所有借方金额汇总
        if("预付款".equals(fklx)){
            MdmBankStateAllocVO mdmBankStateAllocVO=new MdmBankStateAllocVO();
            mdmBankStateAllocVO.setMdmTiiBankStateAllocSequence(1);
            String type="CREDPREPAYMENT";
            BigDecimal fpje=totalDfje;
            mdmBankStateAllocVO.setMdmTicBANKSTATEALLOCTYPE(type);
            mdmBankStateAllocVO.setMdmTicDocNumberReference("");
            mdmBankStateAllocVO.setMdmTicDocBusinessRelationCode(gysdm);
            mdmBankStateAllocVO.setMdmTideBankStateAllocAmountTC(fpje);
            mdmBankStateAllocVO.setMdmTicAllocAmountCrDt("DEB");
            mdmBankStateAllocVO.setMdmTicDocDescription("");
            mdmBankStateAllocVOS.add(mdmBankStateAllocVO);
        }else if("已挂账付款".equals(fklx)){
            if(CollectionUtils.isNotEmpty(yfhkjfkmList)) {
                for (int i = 0; i < yfhkjfkmList.size(); i++) {
                    MdmBankStateAllocVO mdmBankStateAllocVO=new MdmBankStateAllocVO();
                    mdmBankStateAllocVO.setMdmTiiBankStateAllocSequence(i+1);
                    String type="CREDINV";
                    String fph=(String) yfhkjfkmList.get(i).get("fph");
                    BigDecimal fpje=(BigDecimal) yfhkjfkmList.get(i).get("dfje");
                    String ms=(String) yfhkjfkmList.get(i).get("ms");
                    mdmBankStateAllocVO.setMdmTicBANKSTATEALLOCTYPE(type);
                    mdmBankStateAllocVO.setMdmTicDocNumberReference(fph);
                    mdmBankStateAllocVO.setMdmTicDocBusinessRelationCode(gysdm);
                    mdmBankStateAllocVO.setMdmTideBankStateAllocAmountTC(fpje);
                    mdmBankStateAllocVO.setMdmTicAllocAmountCrDt("DEB");
                    mdmBankStateAllocVO.setMdmTicDocDescription(ms);
                    mdmBankStateAllocVOS.add(mdmBankStateAllocVO);
                }
            }
        }
        mdmBankEntry.setMdmBankStateLineVOS(mdmBankStateLineVOS);
        mdmBankEntry.setMdmBankStateAllocVOS(mdmBankStateAllocVOS);
        return mdmBankEntry;
    }

    @Override
    public List<Ie6s6Kjdwxx> getKjdwxxBySsgs(String ssgs) {
        return ie6s6KjdwxxMapper.selectKjdwxxBySsgs(ssgs);
    }
}
